import java.util.Scanner;

public class Learn11 {
    public static int add(int x,int y){
        return x+y;
    }

    public static  double add(double x,double y,double z){
        return x+y+z;
    }

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入两个整数");
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int ret1 = add(a,b);
        System.out.println(ret1);
        System.out.println("请输入三个小数");
        double c = scanner.nextDouble();
        double d = scanner.nextDouble();
        double e = scanner.nextDouble();
        double ret2 = add(c,d,e);
        System.out.println(ret2);
    }
}
